﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Registrar.ascx.cs" Inherits="AntroposWeb.Account.Registrar" %>
<%@ Register Assembly="DevExpress.Web.v13.2, Version=13.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.2, Version=13.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.2, Version=13.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<link rel="stylesheet" href="~/Styles/style.css" type="text/css">
<dx:ASPxRoundPanel HorizontalAlign="Center" ID="ASPxRoundPanel1" runat="server" HeaderText="Registro" Theme="Office2010Black" Width="100%">
    <PanelCollection>
        <dx:PanelContent>
            <table runat="server" style="width: 50%; border-bottom-color:silver;  border-collapse: separate; border-spacing: 10px 5px;">
                <tr>
                    <td style="width:50%">
                        <dx:ASPxLabel ID="lbDoc" runat="server" Text="Documento" />
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtDocumento" runat="server" Width="100%">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Ingrese el número documento" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbTpDocu" runat="server" Text="Tipo Documento" />
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cbTpDoc" runat="server" IncrementalFilteringMode="Contains" Width="100%">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Seleccione tipo documento" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbNombre" runat="server" Text="Nombres" />
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtnombres" runat="server" Width="100%">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Ingrese nombres" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbpriApell" runat="server" Text="Primer Apellido" />
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtPriApellido" runat="server" Width="100%">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Ingrese primer apellido" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbSegApell" runat="server" Text="Segundo Apellido" />
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtSegApellido" runat="server" Width="100%"/>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbFecNac" runat="server" Text="Fecha Nacimiento" />
                    </td>
                    <td>
                        <dx:ASPxDateEdit ID="txtFecNac" runat="server" Width="100%" AutoPostBack="false" Theme="Office2010Black">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Selecccione fecha de nac." IsRequired="true" />
                            </ValidationSettings>
                            <CalendarProperties ButtonStyle-BackColor="GhostWhite">
                                <ButtonStyle BackColor="GhostWhite"></ButtonStyle>
                            </CalendarProperties>
                        </dx:ASPxDateEdit>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbInst" runat="server" Text="Institución" />
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cbInstitu" runat="server" Width="100%" IncrementalFilteringMode="Contains">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Seleccione Opción" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbProf" runat="server" Text="Profundización" />
                    </td>
                    <td>
                        <dx:ASPxComboBox ID="cbProfundizacion" runat="server" Width="100%" IncrementalFilteringMode="Contains">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Seleccione Opción" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbusuario" runat="server" Text="Usuario" />
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtusuarioReg" runat="server" Width="100%">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Ingrese usuario" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbpass" runat="server" Text="Contraseña" />
                    </td>
                    <td>
                        <dx:ASPxTextBox ID="txtpassreg" runat="server" Password="true" Width="100%">
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="Ingrese contraseña" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <dx:ASPxLabel ID="lbCofirmContraReg" runat="server" Text=" Confirmar Contraseña" />
                        </td>
                    <td>
                        <dx:ASPxTextBox ID="txtConfContra" runat="server" Password="true" Width="100%">
                            <ClientSideEvents Validation="function(s, e) {e.isValid = (s.GetText() == txtpassreg.GetText());}" />
                            <ValidationSettings Display="Dynamic" CausesValidation="true" ErrorDisplayMode="ImageWithTooltip" ErrorTextPosition="Right">
                                <RequiredField ErrorText="las contraseñas no son iguales" IsRequired="true" />
                            </ValidationSettings>
                        </dx:ASPxTextBox>

                    </td>
                </tr>
            </table>
            <table style="width: 50%; border-bottom-color:silver;  border-collapse: separate; border-spacing: 10px 5px;">
                <tr>
                    <td>
                        <dx:ASPxButton ID="btnGrabar" runat="server" Text="Registrar" Theme="BlackGlass" OnClick="btnGrabar_Click" Width="100%"/>
                    </td>
                </tr>
            </table>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxRoundPanel>
